import request from '@/utils/request'

export function typeAttrList(productTypeId) {
  return request({
    url: '/productcsy/product/typeAttr/typeAttrList?productTypeId='+productTypeId,
    method: 'get'
  })
}


export function delTypeAttr(id) {
  return request({
    url: '/productcsy/product/typeAttr/delTypeAttr?id=' + id,
    method: 'delete'
  })
}

export function insertTypeAttr(data) {
  return request({
    url: '/productcsy/product/typeAttr/insertTypeAttr',
    method: 'post',
    data: data
  })
}

export function updateTypeAttr(data) {
  return request({
    url: '/productcsy/product/typeAttr/updateTypeAttr',
    method: 'post',
    data: data
  })
}

export function typeList() {
  return request({
    url: '/productcsy/product/type/typeList',
    method: 'get'
  })
}


